home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm4_2_5
- Caption = "4-2-5"
- ClientHeight = 1320
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 2550
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 1320
- ScaleWidth = 2550
- Begin VB.PictureBox picResults
- Height = 495
- Left = 240
- ScaleHeight = 435
- ScaleWidth = 1995
- TabIndex = 1
- Top = 720
- Width = 2055
- End
- Begin VB.CommandButton cmdDisplay
- Caption = "Display Numbers"
- Height = 495
- Left = 360
- TabIndex = 0
- Top = 120
- Width = 1815
- End
- Attribute VB_Name = "frm4_2_5"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdDisplay_Click()
- Dim x As Single
- 'Demonstrate the local nature of variables
- picResults.Cls
- x = 2
- picResults.Print x;
- Call Trivial
- picResults.Print x;
- Call Trivial
- picResults.Print x;
- End Sub
- Private Sub Trivial()
- Dim x As Single
- 'Do something trivial
- picResults.Print x;
- x = 3
- picResults.Print x;
- End Sub
-